package com.blockchainenergy.security.register.impl;

import com.blockchainenergy.security.register.RegisterDto;
import com.blockchainenergy.security.register.RegisterParam;
import com.blockchainenergy.security.register.RegisterService;
import com.blockchainenergy.security.register.dao.RegisterDao;
import com.blockchainenergy.security.rsa.RSAEncrypt;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @descriptions:
 * @data: 2021/10/24 10:43
 */
@Service
@Transactional
public class RegisterServiceImpl implements RegisterService {

    @Resource
    private RegisterDao registerDao;

    @Override
    public void addUser(RegisterDto dto) {
        registerDao.insertUser(dto);
    }

    @Override
    public boolean checkUId(String u_id) {
        return registerDao.checkUId(u_id);
    }
}
